GBML manual / Constants

BLEND_BLINDS

Blinds: stripes 8 rows tall, a strong one then a weaker one, like light through window blinds.

Works differently on Game Boy - A blend look on the Game Boy decides how often a see-through sprite is drawn on each row and fades a see-through picture in bands; see screen_blend.

Works differently on Game Boy Color - A blend look on the Game Boy Color decides how often a see-through sprite is drawn on each row and how much a see-through picture fades; see screen_blend.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BLEND_BLINDS: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the blinds, for screen_blend. A see-through thing shows fully for 8 rows, then less for 8 rows, over and over down the screen, like light coming in through window blinds. With a speed the stripes crawl up or down.

strength is how much weaker the weak stripes are: 1 takes a fifth away, 2 takes away more than a third, and 3 takes away about two thirds.

A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_BLINDS at strength 1, 2 and 3 (stripes 8 rows tall, a dark one then a lighter one, the lighter stripes lighter each time) - the stripes held in the same place each timeA real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_BLINDS at strength 1, 2 and 3 (stripes 8 rows tall, a dark one then a lighter one, the lighter stripes lighter each time) - the stripes held in the same place each time
A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_BLINDS at strength 1, 2 and 3 (stripes 8 rows tall, a dark one then a lighter one, the lighter stripes lighter each time) - the stripes held in the same place each time

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

speed is how many rows the pattern travels down the screen every frame. 0 holds it still, a negative number sends it up, 0.25 is slow and 1 is quick. The pattern belongs to the rows of the screen, not to a picture.

A real capture, 16 frames played in a loop - stripes of dark and light crawl down the screen over the forest and the lighthouseA real capture, 16 frames played in a loop - stripes of dark and light crawl down the screen over the forest and the lighthouse
A real capture, 16 frames played in a loop - stripes of dark and light crawl down the screen over the forest and the lighthouse

The pattern moving, sped up: sixteen real pictures four frames apart, played 70 milliseconds each, at strength 3. It is a whole turn of the pattern, so the loop has no seam. This picture is an animated PNG; a viewer that cannot animate shows its first frame.

In a dark room the look keeps the room's own darkness: it is a shape laid on the number you set, so the screen is on average as dark as the room says and the look moves the darkness around (no row is darker than black). In a room that is not dark the look's own numbers are what decide.

Example

shade = background_create(0, 0, ts_doc_dungeon);
background_see_through(shade, true);
background_priority(shade, 0);
screen_blend(BLEND_BLINDS, 2, 0.5);

Stripes of light and shade that crawl down the screen. Call it once, for example when the room starts - it keeps going by itself until you call screen_blend(BLEND_NONE, 0, 0) or a room is loaded.

See also: screen_blendBLEND_NONEBLEND_WAVE